package com.hopu.blb_erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author xxl
 * @since 2021-11-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User implements Serializable {
//
  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  private Integer userId;

  private String username;

  private String password;

  private String realname;

  private String sex;

  private String birYear;

  private String birMonth;

  private String birDay;

  private String userEmail;

  private Integer companyId;

  private String salt;

  private String telephone;

  private String icon;

  private boolean state;

  private Integer queryTimes;
  @TableField()
  private List<Role> roles;

}
